package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.QuyuzhanMapper;
import com.ruoyi.system.domain.Quyuzhan;
import com.ruoyi.system.service.IQuyuzhanService;

/**
 * zhandianService业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-28
 */
@Service
public class QuyuzhanServiceImpl implements IQuyuzhanService 
{
    @Autowired
    private QuyuzhanMapper quyuzhanMapper;

    /**
     * 查询zhandian
     * 
     * @param id zhandian主键
     * @return zhandian
     */
    @Override
    public Quyuzhan selectQuyuzhanById(Long id)
    {
        return quyuzhanMapper.selectQuyuzhanById(id);
    }

    /**
     * 查询zhandian列表
     * 
     * @param quyuzhan zhandian
     * @return zhandian
     */
    @Override
    public List<Quyuzhan> selectQuyuzhanList(Quyuzhan quyuzhan)
    {
        return quyuzhanMapper.selectQuyuzhanList(quyuzhan);
    }

    /**
     * 新增zhandian
     * 
     * @param quyuzhan zhandian
     * @return 结果
     */
    @Override
    public int insertQuyuzhan(Quyuzhan quyuzhan)
    {
        return quyuzhanMapper.insertQuyuzhan(quyuzhan);
    }

    /**
     * 修改zhandian
     * 
     * @param quyuzhan zhandian
     * @return 结果
     */
    @Override
    public int updateQuyuzhan(Quyuzhan quyuzhan)
    {
        return quyuzhanMapper.updateQuyuzhan(quyuzhan);
    }

    /**
     * 批量删除zhandian
     * 
     * @param ids 需要删除的zhandian主键
     * @return 结果
     */
    @Override
    public int deleteQuyuzhanByIds(Long[] ids)
    {
        return quyuzhanMapper.deleteQuyuzhanByIds(ids);
    }

    /**
     * 删除zhandian信息
     * 
     * @param id zhandian主键
     * @return 结果
     */
    @Override
    public int deleteQuyuzhanById(Long id)
    {
        return quyuzhanMapper.deleteQuyuzhanById(id);
    }
}
